﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CutDownTime2 : MonoBehaviour {

    public UILabel timeLabel;
    public float passTime;

	void Start () {   
    
	}
	
	
	void Update () {
        passTime = passTime - Time.deltaTime;
        int i = (int)passTime;
        timeLabel.text = i.ToString();
        if(passTime < 6){
            Destroy(gameObject);
            GameObject cutDownTime = NGUITools.AddChild(GameObject.Find("UI Root"),(GameObject)Resources.Load(GameDN100PrefabPath.CutDownTime));            
        }       
	}
}
